﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using RPGGameLibrary;
namespace RPGGameLibrary
{
   public  class GUI:List<GUICom>
    {
       public GUI(){}
       public void Start(Map localMap)
       {
           foreach (GUICom Com in this)
           {
               Com.Start(localMap);
           }
       }
       public void Draw( GraphicsDeviceManager gra)
       {
           foreach (GUICom Com in this )
           {
               Com.Draw( gra);
           }
       }
       public void Update()
       {
           foreach (GUICom Com in this)
           {
               Com.Update();
           }
       }
    }
}
